package com.lzs.collection;

import java.util.ArrayList;
import java.util.HashMap;

public class Collection {
    @SuppressWarnings("all")
    public static void main(String[] args) {
        /*
        * 单列集合举例
        * */
        ArrayList arrayList = new ArrayList();
        arrayList.add("xiaoming");
        arrayList.add("xiaohong");
        System.out.println(arrayList);

        /*
        * 双列集合
        * */
        HashMap hashMap = new HashMap();
        hashMap.put("xiaomig","18");
        hashMap.put("xiaohong","20");
        System.out.println(hashMap);
    }
}
